package ltd.followkba.view;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;

import ltd.advskin.MRAM;
import main.MAPI;

import static ltd.advskin.MSKIN.MSTRING;


public class KcFullLayout extends ConstraintLayout {
    public void MLOG(String text) {
        MSTRING(MAPI.GET_LOG_NAME(this) + text);
    }


    public KcFullLayout(Context context) {
        super(context);
    }
    public KcFullLayout(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }
    public KcFullLayout(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }
//    @Override
//    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
//        int width = (widthMeasureSpec&0xffff0000)|MRAM.g4ScreenWidth;
//        int height = (heightMeasureSpec&0xffff0000|MRAM.g4ScreenHeight);
//
//        MLOG(String.format("onMeasureA1 %08x %08x", widthMeasureSpec, heightMeasureSpec));
//        MLOG(String.format("onMeasureA2 %08x %08x", width, height));
//        MLOG(String.format("onMeasureA3 %s %s", widthMeasureSpec&0xffff, heightMeasureSpec&0xffff));
//        MLOG(String.format("onMeasureA5 %s %s", width&0xffff, height&0xffff));
//        MLOG(String.format("onMeasureA6 %s %s", MRAM.g4ScreenWidth, MRAM.g4ScreenHeight));
//        setMeasuredDimension(MeasureSpec.EXACTLY | MRAM.g4ScreenWidth, MeasureSpec.EXACTLY | (MRAM.g4ScreenHeight/2));        // 设置当前控件的宽高，或者向父View申请宽高
//        super.onMeasure(MeasureSpec.EXACTLY | MRAM.g4ScreenWidth, MeasureSpec.EXACTLY | (MRAM.g4ScreenHeight/2));
//    }

}



